// vite.config.ts
import { defineConfig } from "file:///D:/item/studio-web-admin/node_modules/vite/dist/node/index.js";
import UnoCSS from "file:///D:/item/studio-web-admin/node_modules/unocss/dist/vite.mjs";
import react from "file:///D:/item/studio-web-admin/node_modules/@vitejs/plugin-react/dist/index.mjs";
import path from "path";
import { codeInspectorPlugin } from "file:///D:/item/studio-web-admin/node_modules/code-inspector-plugin/dist/index.mjs";
import { sentryVitePlugin } from "file:///D:/item/studio-web-admin/node_modules/@sentry/vite-plugin/dist/esm/index.mjs";
var __vite_injected_original_dirname = "D:\\item\\studio-web-admin";
function resolve(src) {
  return path.join(__vite_injected_original_dirname, src);
}
var vite_config_default = defineConfig({
  plugins: [
    react(),
    UnoCSS(),
    // 	electron({
    // 		entry:`${resolve("./electron/main.cjs")}`,
    //   })
    codeInspectorPlugin({
      bundler: "vite"
    }),
    sentryVitePlugin({
      org: "niubi-uw",
      project: "javascript-react",
      authToken: "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"
    })
  ],
  resolve: {
    alias: {
      "@": resolve("./src")
    },
    //extensions数组的意思是在import组件的时候自动补全.vue等文件后缀
    extensions: [".mjs", ".js", ".ts", ".jsx", ".tsx", ".json", ".vue"]
  },
  server: {
    open: true,
    port: 9e3,
    host: "192.168.1.182",
    proxy: {
      "/api": {
        target: "http://192.168.1.32:8080",
        changeOrigin: true
      }
    }
  },
  build: {
    minify: "terser",
    terserOptions: {
      compress: {
        //生产环境时移除console
        drop_console: true,
        drop_debugger: true
      }
    },
    sourcemap: true
  }
});
export {
  vite_config_default as default
};
//# sourceMappingURL=data:application/json;base64,ewogICJ2ZXJzaW9uIjogMywKICAic291cmNlcyI6IFsidml0ZS5jb25maWcudHMiXS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